using UnityEngine;

namespace NPBehave
{
    public class DebugLog : Task
    {
        private string debugLog;
        
        public DebugLog(string log) : base("DebugLog")
        {
            debugLog = log;
        }

        protected override void DoStart()
        {
            Debug.Log(debugLog);
            Stopped(true);
        }

        protected override void DoStop()
        {
            Stopped(false);
        }

    }
}